import javax.vecmath.Vector3d;


public class PlanetSystemEngine 
{	
	/**
	 * This method is returning the stepsize for each planet.
	 * @param delta_t
	 * @param speed
	 * @param radius2
	 * @param radius1
	 * @return
	 */
	public int calcStepSize(double delta_t, Vector3d speed, Vector3d radius2, Vector3d radius1)
	{
		return (int) ((delta_t * speed.length()) / (radius2.length() - radius1.length()) + 0.5);
	}
}
